package com.wwz.tcc;

import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;
import org.springframework.stereotype.Service;
/*
@LocalTCC
*/
public interface TccUserService {
    @TwoPhaseBusinessAction(name="userService" )
    int insert(BusinessActionContext businessActionContext,@BusinessActionContextParameter(paramName = "name") String name,@BusinessActionContextParameter(paramName = "branchId")long branchId);

    boolean commit(BusinessActionContext businessActionContext);

    boolean rollback(BusinessActionContext businessActionContext);

}
